package com.hkts.naturalgas.feign;

import com.hkts.naturalgas.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;


import java.util.List;
import java.util.Map;

/**
 * @ClassNameFeignFlow
 * @Description
 * @Author yck
 * @Date2020-12-24 16:21
 * @Version V1.0
 **/
@FeignClient(value="flow-manager",configuration = FeignHeadersInterceptor.class)
public interface FeignFlow {
    @GetMapping("/rest/task/get-performance-applying-tasks")
    public Result getPerformanceApplyingTasks(int pageNum);

    @RequestMapping(value = "/rest/performance/add", method = RequestMethod.POST, consumes = MediaType.ALL_VALUE)
    public String add(String hontUserId);

    /*
    * 远调用流程审核
    * */

   @RequestMapping(value = "/rest/formdetail/completePerformance",method = RequestMethod.POST, consumes = MediaType.ALL_VALUE)
    public String completePerformance(@RequestParam("processInstanceId") String processInstanceId);

    @RequestMapping(value = "/rest/task/getPerPormanceByPerPormance",method = RequestMethod.GET,produces =MediaType.APPLICATION_JSON_UTF8_VALUE, consumes = MediaType.ALL_VALUE)
    public String getPerPormanceByPerPormance();

    /*
    * 获取需要的待办list
    * */
    @RequestMapping(value = "/rest/task/get-list-applyed-tasks",method = RequestMethod.GET,produces =MediaType.APPLICATION_JSON_UTF8_VALUE, consumes = MediaType.ALL_VALUE)
    public String getListApplyedTasks(String date);
}
